package com.example.stus.contorller;

import com.example.stus.entity.AgeStaticsEntity;
import com.example.stus.entity.MajorEntity;
import com.example.stus.entity.StuInformation;
import com.example.stus.service.MajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/StuInformation")
public class MajorController {
    @Autowired
    private MajorService majorService;

    //添加操作
    @GetMapping("/doStatic")
//    public String doStatic(@RequestParam String stu){
    public List<MajorEntity> doStatic() {
        String stu = "软件工程";
        String major = "";
        return majorService.doStatic(stu, major);
    }
//    @GetMapping("/doAgeStatic")
//    public List<AgeStaticsEntity> doAgeStatic() {
//        return majorService.doAgeStatic();
//    }

}
